/*
 * @author Ashish Tomar
 */

package DocClass;

/**
 * A lightweight shell around an array of {@link DocumentSet} objects
 * @author Ashish Tomar
 */
public class ResultSet {

	DocumentSet doc[];

	/**
	 *	Use the default length in ProcessConst.
	 */
	ResultSet(){
		this(ProcessConst.DEFAULTLEN);
	}

	/**
	 * @param n The number of results to be stored in this object
	 */
	ResultSet(int n){
		int i=0;
		doc=new DocumentSet[n];
		for(i=0;i<n;i++)
		{
			doc[i]= new DocumentSet();
		}
	}

	/**
	 *
	 * @return the number of DocumentSet objects in this ResultSet
	 */
	int getNodeLen()
	{
		return this.doc.length;
	}

}
